#ifndef _PWM_CONFIG_H_
#define _PWM_CONFIG_H_

#include <rtthread.h>

#ifdef __cplusplus
extern "c" {
#endif 
	
#ifdef BSP_USING_PWM0
#ifndef PWM0_CONFIG
#define PWM0_CONFIG                            \
	    {                                       \
			   .tim_handle.Instance   = TIMER0,      \
				 .name                  = "pwm0",      \
				 .channel               = 0  \
			}

#endif    /* PWM1_CONFIG */
#endif    /* bsp_using_pwm1 */
			
	
#ifdef BSP_USING_PWM1
#ifndef PWM1_CONFIG
#define PWM1_CONFIG                            \
	    {                                       \
			   .tim_handle.Instance   = TIMER1,      \
				 .name                  = "pwm1",      \
				 .channel               = 0  \
			}

#endif    /* PWM1_CONFIG */
#endif    /* bsp_using_pwm1 */
			

#ifdef BSP_USING_PWM2
#ifndef PWM2_CONFIG
#define PWM2_CONFIG                            \
	    {                                       \
			   .tim_handle.Instance   = TIMER2,      \
				 .name                  = "pwm2",      \
				 .channel               = 0  \
			}

#endif    /* PWM1_CONFIG */
#endif    /* bsp_using_pwm1 */
			
#ifdef BSP_USING_PWM3
#ifndef PWM3_CONFIG
#define PWM3_CONFIG                            \
	    {                                       \
			   .tim_handle.Instance   = TIMER3,      \
				 .name                  = "pwm3",      \
				 .channel               = 0  \
			}

#endif    /* PWM1_CONFIG */
#endif    /* bsp_using_pwm1 */
			
#ifdef BSP_USING_PWM4
#ifndef PWM4_CONFIG
#define PWM4_CONFIG                            \
	    {                                       \
			   .tim_handle.Instance   = TIMER4,      \
				 .name                  = "pwm4",      \
				 .channel               = 0  \
			}

#endif    /* PWM1_CONFIG */
#endif    /* bsp_using_pwm1 */
			

#ifdef BSP_USING_PWM5
#ifndef PWM5_CONFIG
#define PWM5_CONFIG                            \
	    {                                       \
			   .tim_handle.Instance   = TIMER5,      \
				 .name                  = "pwm5",      \
				 .channel               = 0  \
			}

#endif    /* PWM1_CONFIG */
#endif    /* bsp_using_pwm1 */	

			
#ifdef __cplusplus
}
#endif
#endif 


